<?php

class LoginController extends Blog_Controller_AdminController {
	public function init() {
		
	}
	
	public function indexAction() {
		$this->_helper->layout()->disableLayout();
		$LoginForm = new Zend_Form('LoginForm');
		
		$LoginForm->setMethod(Zend_Form::METHOD_POST)
				->setDecorators(array(array('ViewScript', array('viewScript' => '/login/_loginForm.phtml'))))
				->addElements(array(
					new Zend_Form_Element_Text('UserName', array('placeholder' => 'Tên đăng nhập', 'class' => 'input')),
					new Zend_Form_Element_Password('Password', array('placeholder' => 'Mật khẩu', 'class' => 'input')),
					new Zend_Form_Element_Submit('LoginButton', 'Đăng nhập')
				));
		
		$this->view->assign('LoginForm', $LoginForm);
	}
}
